package com.mamahao.vmnetframework.application

import android.app.Application

class MyApp : Application(){

    companion object {
        // 伴生对象
        lateinit var instance: MyApp
            // private set 用于说明外部类不能对其进行赋值。
            private set
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
    }
}